import java.util.Scanner;

public class printBit {
    public static void printBit(int n){
        if(n/10==0){
            System.out.print(n+" ");
            return ;
        }

         printBit(n/10);
        System.out.print(n%10+" ");
    }
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("输入一个整数：");
        int n=scan.nextInt();
        printBit( n);
    }
}
